Aug 21, 2023
If you haven’t already, install Django:
Create a new Django project:
Now, let’s create a new app within the project:
In the demoapp directory, create a file named urls.py to define your URL patterns:
In the same demoapp directory, modify the file named views.py to define your views:
In the URLDemo project directory, open the urls.py file and include the app’s URLs:
Now you can run the development server:
Visit these URLs in your browser to see the different views:
Manish Patel